<template>
  <div>
    <div @click="onItemClick(item)" style="position:relative;" v-for="item in list">
      <div class="evaluationItem">
        <div class="evaluationContent">
          <p class="ellipsis1">{{item['title']}}</p>
          <p class="ellipsis1">{{item['ext1']}}</p>
          <p class="ellipsis3">{{item['remark']}}</p>

        </div>
        <img :src="item['pic']" class="evaluationImg"/>
      </div>
    </div>
  </div>
</template>
<script>
  import BuyLockCover from "../../../components/BuyLockCover";
  import {push} from "@/router/util";

  export default {
    name: 'EvaluationList',
    components: {BuyLockCover},
    props: ['list'],
    methods: {
      onItemClick: function (item) {
        // Toast('优化中，敬请期待...');
        push(`/evaluation-desc/${item.id}`)
      },
    },

  }
</script>
<style scoped>

  .evaluationItem {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: row;
    background-color: white;
    justify-content: space-between;
    /*box-shadow: 0 0 10px #CCCCCC;*/
    /*border: 1px solid #CCCCCC;*/
    margin-bottom: 16px;
    border-radius: 4px;
  }

  .evaluationImg {
    object-fit: cover;
    width: 114px;
    height: 114px;
    border-radius: 0 4px 4px 0;
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 20% 0%);
    flex-shrink: 0
  }

  .evaluationContent {
    margin-right: 16px;
    flex-grow: 1;
    word-break: break-all;
  }

  .evaluationContent p:first-child {
    margin-left: 12px;
    color: #323334;
    font-size: 16px;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .evaluationContent p:nth-child(2) {
    margin-left: 12px;
    color: #323334;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .evaluationContent p:last-child {
    margin-left: 12px;
    font-size: 10px;
    color: #646668;
  }

</style>
